<?PHP 
$page_title = "Updates";
$rank_check = 0;
include "globals.inc.php";

$connection=mysql_connect($db_server,$db_username,$db_password) or die('Could not connect to the database server'); 
$db = mysql_select_db($db_name, $connection) or die ("Unable to select database."); 

$sql = "INSERT INTO updates2 (id,author,subject,message,timestamp,game,update_image) VALUES ('$userid','$author', '$subject', '$message', '$timestamp', '$game','$update_image')"; 
$sql_result = mysql_query($sql,$connection) or die ('Could not insert data'); 
echo('Data inserted successfully.'); 
mysql_close($connection); 

?>